{include file="./headStart.tpl"}
<script type="text/javascript">
function reportChange()
{
  var dataString = "partyId=" + $('#partyId').val() + "&toDateYear=" + $("select[name='toDateYear']").val() 
                    + "&toDateMonth=" + $("select[name='toDateMonth']").val() + "&fromDateYear=" + $("select[name='fromDateYear']").val()
                    + "&fromDateMonth=" + $("select[name='fromDateMonth']").val();  	
  $.ajax({
    url:  "./grnAj.php",
    cache: false,
    data: dataString,
    success: function(data){
      $("#userType").html(data);
    }
  });
}
</script>
{include file="./headEnd.tpl"}
<form name="formMaster" id="formMaster" action="{$smarty.server.PHP_SELF}" method="post">
<center><font style="font-size: 16px"><b>Goods Return Note (GRN)</b></font></center><br/>
<table border='1' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="2"><font style="font-size: 16px"><b> Master Delivery Challan Process </b></font></td>
</tr>
<tr> 
  <td class="table2" align='center'>
    <select name="partyId" id="partyId">
      <option value="0">Select</option>
      <optgroup label="Party Name">
        {html_options values=$partyId output=$pCompanyName selected=$partySelected}
      </optgroup>
    </select>
    From : {html_select_date prefix="fromDate" time="$month" start_year="-3" end_year="+1" month_format="%b" field_order="MY" 
            day_value_format="%02d" month_extra="id='fromMonthFilter'" year_extra="id='fromYearFilter'"}   
     
    To : {html_select_date prefix="toDate" time="$month" start_year="-3" end_year="+1" month_format="%b" field_order="MY" 
          day_value_format="%02d" month_extra="id='toMonthFilter'" year_extra="id='toYearFilter'"}      
  </td>
  <td class="table2">
    <input type="button" name="submitDateBtn" value="GO..." class="button" onclick="reportChange();"/>
  </td>
</tr>
</table>
<div id="userType"> 
</div>
</form>

{include file="footer.tpl"}